package com.github.permissiondog.cancanpandroid.repository;

import com.github.permissiondog.cancanpandroid.model.User;
import com.github.permissiondog.cancanpandroid.util.CallBack;
import com.github.permissiondog.cancanpandroid.util.EmptyCallBack;
import com.github.permissiondog.cancanpandroid.util.ErrorCallBack;

import java.util.Optional;

public interface UserRepository {
    void login(String username, String password, CallBack<Boolean> res);
    void currentUser(CallBack<Optional<User>> res);
    void logout(EmptyCallBack res);
}
